$(document).ready(function(){

});

function runReport(){
    $.ajax({
        type: 'post',
        dataType: 'html',
        url: "runReport",
        success: function(data) {
            if (data != '') {
                $('#reportContainer').empty();
                $('#reportContainer')
                    .append('<a href="export?documentType=pdf" target="_blank"><img src="resources/img/reports/export_to_pdf.png" alt="export_to_pdf" title="Экcпортировать в pdf"/></a><a href="export?documentType=xlsx" target="_blank"><img src="resources/img/reports/export_to_xls.png" alt="export_to_xlsx" title="Экcпортировать в excel"/></a><a href="export?documentType=docx" target="_blank"><img src="resources/img/reports/export_to_docx.png" alt="export_to_docx" title="Экcпортировать в word"/></a>')
                    .append(data);
            }
        },
        error: function(data) {
            alert('data = ' + data);
        }
    });
}